import request from '@/utils/request'

// 获取首页统计数据
export function getDashboardStats() {
  return request({
    url: '/system/home/statistics',
    method: 'get'
  })
}

// 获取订单趋势数据
export function getOrderTrend(params) {
  return request({
    url: '/system/home/orderTrend',
    method: 'get',
    params: params
  })
}

// 获取订单状态分布
export function getOrderStatusDistribution() {
  return request({
    url: '/system/home/orderStatusDistribution',
    method: 'get'
  })
}

// 获取收入趋势数据
export function getRevenueTrend(params) {
  return request({
    url: '/system/home/revenueTrend',
    method: 'get',
    params: params
  })
}

// 获取最新订单列表
export function getRecentOrders(params) {
  return request({
    url: '/system/home/recentOrders',
    method: 'get',
    params: params
  })
}

